<{php}>
if(isset($config['post_index_seo_title']['cvalue'])){
    $title = $config['post_index_seo_title']['cvalue'];
}
if(isset($config['post_index_seo_keywords']['cvalue'])){
    $keywords = $config['post_index_seo_keywords']['cvalue'];
}
if(isset($config['post_index_seo_desc']['cvalue'])){
    $description = $config['post_index_seo_desc']['cvalue'];
}
<{/php}>
<{include file="../template/public/head.html"}>
<!-- header-->
<!-- bra_top -->
<{include file="../template/public/union_nav.html"}>
<!--面包屑导航-->
<div class="container-fluid">
    <div class="row bread-nav">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <ol class="breadcrumb pull-left">
                        <li>
                            <a href="/"><{:lang('home')}></a>
                        </li>
                        <li>
                            <a href="<{php}> echo $query->U('index/post/index/id/4',true);<{/php}>"><{:lang('news')}></a>
                        </li>
                    </ol>
                </div>

            </div>
        </div>
    </div>
</div>

<link rel="stylesheet" type="text/css" href="/static/css/css.css?v=1" />

<style type="text/css">
	.news_banner{
				background:url(<{if condition="isset($config.product_post_banner.cvalue)"}><{$config.product_post_banner.cvalue}><{/if}>);
				background-size:100% 100%;
		}
    .sub-nav-a{
        width:420px !important;
    }
    @media (max-width: 1200px) {
        .news_banner {
            background: url(<{if condition= "isset($config.product_post_banner.cvalue)" }><{$config.product_post_banner.cvalue}><{/if}>) no-repeat center center !important;
        }
        .sub-nav-a{width:auto !important;}
        .sub-nav{
            width:47% !important;
        }
    }
    @media (max-width:700px) {
        .news_banner{
            display:none;
        }
    }
    @media (max-width: 416px){
        .mytabs_li_5 li a{
            padding:0;margin:0;font-size:14px;
        }
        .news_banner{
            display: none;
        }
    }
</style>
<div class="news_banner banner banner_brands">
    <div class="container">
        <div class="col-sm-7">
            <div class="text">
                <h1><strong><{if condition="isset($config.product_post_title.cvalue)"}><{$config.product_post_title.cvalue}><{/if}></strong></h1>
                <p><{if condition="isset($config.product_post_desc.cvalue)"}><{$config.product_post_desc.cvalue}><{/if}></p>
            </div>
        </div>
    </div>
</div>
<div id="content" class=" mt65 mb65">
    <div class="container">
        <{php}>
        $postClass = $query->getPostClass();
        $curMain = 0;
        <{/php}>
        <!--<ul class="nav nav-tabs text-center center-block mytabs_li_5 ">
            <{volist name="postClass" id="item"}>
            <{php}>
                $className = '';
                if(isset($item['sub'][$id])){
                    $curMain = $item['id'];
                    $className = 'active';
                }else if($item['id'] == $id){
                    $curMain = $id;
                    $className = 'active';
                }
            <{/php}>
            <li class="<{$className}>" ><a href="<{php}> echo $query->U('index/post/index/id/'.$item['id'],true);<{/php}>"><{$item.name}></a></li>
            <{/volist}>

        </ul>-->

<!--
        <{if condition="($curMain && isset($postClass[$curMain]['sub']))"}>
        <ul class="nav nav-tabs text-center center-block mytabs_li_5" style="margin-top:30px">
            <{volist name="$postClass[$curMain]['sub']" id="item"}>
            <li <{if condition="($id eq $item.id)"}>class="active sub-nav"<{else /}>class="sub-nav"<{/if}> ><a class="sub-nav-a" href="<{php}> echo $query->U('index/post/index/id/'.$item['id'],true);<{/php}>"><{$item.name}></a></li>
            <{/volist}>
        </ul>
        <{/if}>
-->

        <{php}>$posts = $query->getPostsByClass($id);<{/php}>
        <{volist name="posts" id="item"}>
        <div class="container-fluid mt65 mb65 news">
            <div class="container-fluid">
                <div class="row table-bordered ">
                    <div class="col-sm-6 row">
                        <a href="<{php}> echo $query->U('index/post/detail/id/'.$item['id'],true);<{/php}>"><img src="<{$item.cover}>" width="475" height="240" alt="" class="img-responsive" /></a>
                    </div>
                    <div class="col-sm-6">
                        <div class="text">
                            <h2><strong><a href="<{php}> echo $query->U('index/post/detail/id/'.$item['id'],true);<{/php}>"><{$item.title}></a></strong></h2>
                            <p><{$item.desc}></p>
                            <span class="mt26"><{$item.create_time}></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <{/volist}>
        <div class="container-fluid">
            <{$posts->render()}>
        </div>

    </div>
</div>
<{include file="../template/public/sidebar.html"}>
<{include file="../template/public/foot.html"}>